package com.jielin.handling.mapper.room;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jielin.handling.entity.room.RoomRecord;

public interface RoomRecordMapper {

	int addRoomRecord(RoomRecord record);// 初始化房间使用记录

	int updateRoomRecord(@Param("leaveallcase")String leaveallcase, @Param("roomrecordid")String roomrecordid);// 保存更新房间结束时间

	List<RoomRecord> findSuspectRecord(@Param("suspectid")String suspectid, @Param("leaveType")String leaveType);// 根据嫌疑人id查询该嫌疑人的活动记录

	int addSuspectRecord(RoomRecord r);// 添加嫌疑人的活动记录

	int updateRoomRecordLeave(String roomrecordid);// 添加嫌疑人的活动记录

	RoomRecord findLastRommRecordByRoomId(@Param("roomId")String roomId,@Param("policeId")String policeId);// 根据房间id和警员id查询最近一次的房间使用记录

}
